<template>
  <div class="slideshow">
    <el-carousel height="160px">
      <el-carousel-item v-for="item in imageUrl" :key="item.id">
        <img :src="item.image" alt="">
      </el-carousel-item>
    </el-carousel>
  </div>
</template>

<script setup>
import { ref } from 'vue'

const imageUrl = ref([
  {
    id: 1,
    image: '../images/xiong1.jpeg'
  },
  {
    id: 2,
    image: '../images/xiong3.jpg'
  },
  {
    id: 3,
    image: '../images/xiong2.jpg'
  }
])
</script>

<style scoped>
.el-carousel__item img {
  width: 100%;
  height: 100%;
  opacity: 0.75;
  line-height: 150px;
  margin: 0;
  text-align: center;
}

</style>